home *** CD-ROM | disk | FTP | other *** search
/ The X-Philes (2nd Revision) / The X-Philes Number 1 (1995).iso / xphiles / hp48_2 / puzzle < prev    next >
Text File  |  1995-03-31  |  2KB  |  57 lines

  1. Article 1423 of comp.sys.handhelds:
  2. Path: en.ecn.purdue.edu!noose.ecn.purdue.edu!samsung!umich!mailrus!hellgate.utah.edu!cc.utah.edu!cc.usu.edu!slsw2
  3. From: SLSW2@cc.usu.edu (Roger Ivie)
  4. Newsgroups: comp.sys.handhelds
  5. Subject: PUZZLE for CHIP8
  6. Message-ID: <35375@cc.usu.edu>
  7. Date: 20 Sep 90 01:35:42 GMT
  8. Lines: 45
  9.  
  10. Here's a UUENCODEd version of the infamous 15 puzzle for CHIP8. The puzzle,
  11. as you doubtless recall, has 15 squares numbered 1 through 15 (in this case,
  12. 1 through F) and one hole. You can move the hole about and must put the
  13. pieces in order.
  14.  
  15. When you first run puzzle, it comes up solved. Thereafter, pressing ENTER
  16. causes the puzzle to have 32 random moves made, effectively randomizing the
  17. puzzle. If 32's not enough for you, just press ENTER again.
  18.  
  19. You enter moves by using the 4x4 keypad area used by CHIP8. The key's
  20. position in that 4x4 matrix corresponds to the square in that position of
  21. the puzzle matrix. Pushing a key causes the hole to migrate to that 
  22. position. The migration is performed in the order up, down, left, right;
  23. it is not necessary to limit your moves to those rows and columns containing
  24. the hole; you can request that the hole move to any position.
  25.  
  26. The program does not check to see if you've solved the puzzle, and therefore
  27. nothing special happens when you do except for the warm, fuzzy feeling that
  28. you have beaten it.
  29.  
  30. It's really simple and I wrote it mainly to familiarize myself with 
  31. CHIP8.
  32.  
  33. Enjoy.
  34.  
  35. begin 644 puzzle
  36. M2%!(4#0X+40L*E P  #@; !, &X/H@-@(/!5 . BOB)V(HXB7B)&$A!A &(7
  37. M8P1!$ #NHNCQ'O!E0  2-/ ITC5Q 7(%9 .$$C0 $B)B%W,&$B)D X3B90.%
  38. MTI10 .Y$ P#N9 &$Y"*F$D9D X3B90.%TI10 .Y$  #N9/^$Y"*F$EYD#(3B
  39. M90R%TI10 .Y$  #N9/R$Y"*F$G9D#(3B90R%TI10 .Y$# #N9 2$Y"*F$HZB
  40. MZ/0>\&6BZ/X>\%5@ *+H]![P58Y  .X\ !+2(APBV"(<HOC]'O!EC0  [GS_
  41. MS0\ [GT!8 ^- NV>$MCMH1+B .X! @,$!08'" D*"PP-#@\ #0 ! @0%!@@)
  42. M"@P. P<+#X3D(J82=F0,A.)E#(72E%  [D0, .YD!(3D(J82CJ+H]![P9:+H
  43. M_A[P56  HNCT'O!5CD  [CP $M(B'"+8(ARB^/T>\&6-  #N?/_-#P#N?0%@
  44. E#XT"[9X2V.VA$N( [@$" P0%!@<("0H+# T.#P -  $"! 4&"/_-
  45.  
  46. end
  47. -- 
  48. ===============================================================================
  49. Roger Ivie
  50.  
  51. 35 S 300 W
  52. Logan, Ut.  84321
  53. (801) 752-8633
  54. ===============================================================================
  55.  
  56.  
  57.